home *** CD-ROM | disk | FTP | other *** search
/ Alles Voor Internet / Tout Pour Internet / alles voor internet.iso / MacInternet™ / Telnet / TN3270 2.4a4 ƒ / Goodies / español / español.kbmap < prev    next >
Text File  |  1990-08-31  |  14KB  |  546 lines

  1. #
  2. # tn3270 keycode mapping definition
  3. #
  4. # General syntax rules:
  5. #    Case is ignored except in the name of the key mapping, and in character
  6. #    literals, e.g. 'a'.
  7. #
  8. #    Blank lines, white space, and any text following "#" on a line is ignored.
  9. #
  10. # The three types of definition lines are the mapping name definition, the
  11. # mapping number definition, and the key mapping definition:
  12. #
  13. #    To name this mapping:
  14. #        name: {mapping name}
  15. #    Underscores in the name are replaced by blanks.  Use two consecutive
  16. #    underscores to include an underscore in the name.
  17. #
  18. #    To assign a resource number for this mapping:
  19. #        number: {resource number}
  20. #    This number is only used when the resource is written out in "Rez"
  21. #    file format.
  22. #
  23. #    To map a function to a key sequence:
  24. #         function = [modifier] {'literal' | "hexcode" | "Khexcode"}
  25. #
  26. #    Function names are listed below.  Following each name enclosed in
  27. #    parenthesis is the EBCDIC hex code the name maps to.
  28. #      Punctuation Marks:
  29. #        space (40)        cent (4A)        period (4B)            less (4C)
  30. #        lparen (4D)        plus (4E)        or (4F)                ampersand (50)
  31. #        exclaim (5A)    dollar (5B)        asterisk (5C)        rparen (5D)
  32. #        semi (5E)        not (5F)        minus (60)            slash (61)
  33. #        vertical (6A)    comma (6B)        percent (6C)        underscore (6D)
  34. #        greater (6E)    question (6F)    accent (79)            colon (7A)
  35. #        pound (7B)        at (7C)            apostrophe (7D)        equal (7E)
  36. #        dblquote (7F)    tilde (A1)        lbrack (AD)            rbrack (BD)
  37. #        lbrace (C0)        rbrace (D0)
  38. #      Lowercase Letters:
  39. #        lca through lci (81 through 89)
  40. #        lcj through lcr (91 through 99)
  41. #        lcs through lcz (A2 through A9)
  42. #      Uppercase Letters:
  43. #        a through i    (C1 through C9)
  44. #        j through r (D1 through D9)
  45. #        s through z (E2 through E9)
  46. #      Digits:
  47. #        0 through 9 (F0 through F9)
  48. #      APL Characters: (hex codes given are preceded by Graphics Escape)
  49. #        Note: APL mode must be in effect for these characters to be generated.
  50. #        a_ through i_ (41 through 49) (underscored uppercase letters)
  51. #        j_ through r_ (51 through 59)
  52. #        s_ through z_ (62 through 69)
  53. #        i-beam (DA)            del-tilde (FB)        grade-down (DC)
  54. #        grade-up (DD)        vert-rotate (CD)    transpose (CF)
  55. #        hor-rotate (ED)        logarithm (FD)        nor (CB)
  56. #        nand (CA)            apl-exclaim (DB)    domino (EE)
  57. #        quote-quad (DE)        delta_ (FC)            format (FE)
  58. #        execute (EF)        lamp (DF)            expand (EB)
  59. #        compress (EA)
  60. #      ALA Characters (for use the built-in ALA font)
  61. #        left_tack (2A)        pointer (38)        paragraph (39)
  62. #        single_dagger (3A)    double_dagger(3B)    polish_l (41)
  63. #        slash_o (42)        d_crossed (43)        thorn (44)
  64. #        ae (45)                oe (46)                hook_o (47)
  65. #        hook_u (48)            maigkiy_znak (49)    lcpolish_l (51)
  66. #        lcslash_o (52)        lcd_crossed (53)    lcthorn (54)
  67. #        lcae (55)            lcoe (56)            lchook_o (57)
  68. #        lchook_u (58)        tverdyi_znak (59)    ayn (62)
  69. #        alf (63)            middle_dot (64)        turkish_i (65)
  70. #        flat (66)            patent (67)            eth (68)
  71. #        plus_or_minus (69)    sub0 (70) through sub8 (78)
  72. #        script_l (80)        angstrom (8A)        superior_dot (8B)
  73. #        umlaut (8C)            candrabindu (8D)    left_ligature (8E)
  74. #        left_d_tilde (8F)    sub9 (90)            grave (9A)
  75. #        acute (9B)            ala_circumflex (9C)    hacek (9D)
  76. #        right_ligature (9E)    right_d_tilde (9F)    ala_dagger(A0)
  77. #        sub_plus (AA)        sub_lparen (AB)        pincushion (AC)
  78. #        sub_minus (AE)        sub_rparen (AF)
  79. #        sup0 (B0) through sup9 (B9)                sup_plus (BA)
  80. #        sup_lparen (BB)        asper (BC)            sup_minus (BE)
  81. #        sup_rparen (BF)        circle_below (CA)    dot_below (CB)
  82. #        double_dot_below (CC)  breve (CD)        ala_tilde (CE)
  83. #        pseudo_quest (CF)    cedilla (DA)        high_comma_ctr (DB)
  84. #        right_hook (DC)        upadhmaniya (DD)    macron (DE)
  85. #        double_acute (DF)    british_pound (E2)    right_cedilla (EA)
  86. #        high_comma (EB)        left_hook (EC)        ala_underscore (ED)
  87. #        double_underscore (EE)  ala_alpha (FA)    ala_beta (FB)
  88. #        ala_gamma (FC)        yen (FD)            peso (FE)
  89. #      Attention Keys: (hex codes are the AID codes transmitted)
  90. #        pf1 through pf9 (F1 through F9)
  91. #        pf10 through pf12 (7A through 7C)
  92. #        pf13 through pf21 (C1 through C9)
  93. #        pf22 through pf24 (4A through 4C)
  94. #        enter (7D)        pa1 (6C)        pa2 (6E)        pa3 (6B)
  95. #        clear (6D)        treq (F0)        cursel (7E)
  96. #      Cursor Movement:
  97. #        up                down            left        right        tab
  98. #        backtab            newline            home        up*2        down*2
  99. #        left*2            right*2
  100. #      Editing:
  101. #        erase-eof        erase-input        delete-char        insert-char
  102. #        dup                field-mark        rub-out
  103. #      Program Control:
  104. #        insert-mode (toggle insert mode)
  105. #        apl-mode (toggle keyboard APL mode)
  106. #        cursor-pos (toggle cursor position display)
  107. #        reset (unlock keyboard)
  108. #        prog-reset (reset program; resets above modes and I/O)
  109. #
  110. #    Modifier is: normal, shift, command, command-shift, or option.  
  111. #   If the user presses more than one modifier key, the precedence of the
  112. #    modifiers is: command-shift, command, option, and shift.  It is not
  113. #    possible to specify mapping for other combinations, such as command-option.
  114. #    For ASCII key mappings, when "modifier" is omitted, the mapping applies
  115. #    to both "normal" and "shift".  For keycode mappings, the default modifier
  116. #    is "normal", i.e. no modifiers.
  117. #
  118. #    'literal' specifies a mapping to the ASCII code defined by the character
  119. #    literal.
  120. #
  121. #    "hexcode" specifies a mapping to the ASCII code given in hex.  It must
  122. #    consist of exactly two hex digits.
  123. #
  124. #    "Khexcode" specifies a keycode mapping to the code given in hex.  It must
  125. #    consist of exactly two hex digits.
  126. #    If a keycode mapping is defined for a key, it takes precedence over an
  127. #    ASCII code mapping for it.
  128. #    Keycode mapping use the raw key codes provided by the Macintosh operating
  129. #    system for a key press event.  They are hardware dependent, and should only
  130. #    be used when keys which must be distinguished return the same ASCII codes.
  131. #    For keycode values see "The Toolbox Event Manager" chapter in volumes 1 and
  132. #    5 of "Inside Macintosh".
  133. #
  134. # tn3270 spanish mapping (note that the mapping also have Catalan characters):
  135. #
  136. name: español
  137. number: 132
  138.  
  139. # character mappings
  140.  
  141. space = "20"        # spaces are ignored in literals too
  142. # cent = option "d2"    # option [
  143. period = '.'
  144. less = '<'
  145. lparen = '('
  146. plus = '+'
  147. or = '|'
  148. ampersand = '&'
  149. # exclaim = '!'       # no same code in spanish 
  150. dollar = '$'
  151. asterisk = '*'
  152. rparen = ')'
  153. semi = ';'
  154. not = '^'
  155. minus = '-'
  156. slash = '/'
  157. vertical = 'ñ'
  158. comma = ','
  159. percent = '%'
  160. underscore = '_'
  161. greater = '>'
  162. question = '?'
  163. accent = '`'
  164. colon = ':'
  165. pound = 'Ñ'    # can't use comment delimiter in a literal!
  166. at = '@'
  167. at = "23"     # at is not in keyboard.  We obtain it with pound, 
  168.                    # which does not exist in spanish EBCDIC
  169. apostrophe = '''
  170. equal = '='
  171. dblquote = '"'
  172. lca = 'a'
  173. lcb = 'b'
  174. lcc = 'c'
  175. lcd = 'd'
  176. lce = 'e'
  177. lcf = 'f'
  178. lcg = 'g'
  179. lch = 'h'
  180. lci = 'i'
  181. lcj = 'j'
  182. lck = 'k'
  183. lcl = 'l'
  184. lcm = 'm'
  185. lcn = 'n'
  186. lco = 'o'
  187. lcp = 'p'
  188. lcq = 'q'
  189. lcr = 'r'
  190. lcs = 's'
  191. lct = 't'
  192. lcu = 'u'
  193. lcv = 'v'
  194. lcw = 'w'
  195. lcx = 'x'
  196. lcy = 'y'
  197. lcz = 'z'
  198. tilde = '~'
  199. lbrack = '[' 
  200. # rbrack = ']'             Different code in spanish EBCDIC
  201. lbrace = '{'
  202. rbrace = '}'
  203. a = 'A'
  204. b = 'B'
  205. c = 'C'
  206. d = 'D'
  207. e = 'E'
  208. f = 'F'
  209. g = 'G'
  210. h = 'H'
  211. i = 'I'
  212. j = 'J'
  213. k = 'K'
  214. l = 'L'
  215. m = 'M'
  216. n = 'N'
  217. o = 'O'
  218. p = 'P'
  219. q = 'Q'
  220. r = 'R'
  221. s = 'S'
  222. t = 'T'
  223. u = 'U'
  224. v = 'V'
  225. w = 'W'
  226. x = 'X'
  227. y = 'Y'
  228. z = 'Z'
  229. backslash = '\'
  230. 0 = '0'
  231. 1 = '1'
  232. 2 = '2'
  233. 3 = '3'
  234. 4 = '4'
  235. 5 = '5'
  236. 6 = '6'
  237. 7 = '7'
  238. 8 = '8'
  239. 9 = '9'
  240.  
  241. # With Spanish Keyboard, APL option is disabled: we need option codes for accents
  242. # and other special characters.
  243.  
  244. #a_ = option "K00"
  245. b_ = option "K0b"
  246. c_ = option "K08"
  247. d_ = option "K02"
  248. #e_ = option "K0e"
  249. f_ = option "K03"
  250. g_ = option "K05"
  251. h_ = option "K04"
  252. #i_ = option "K22"
  253. j_ = option "K26"
  254. k_ = option "K28"
  255. l_ = option "K25"
  256. m_ = option "K2e"
  257. n_ = option "K2d"
  258. #o_ = option "K1f"
  259. p_ = option "K23"
  260. q_ = option "K0c"
  261. r_ = option "K0f"
  262. s_ = option "K01"
  263. t_ = option "K11"
  264. #u_ = option "K20"
  265. v_ = option "K09"
  266. w_ = option "K0d"
  267. x_ = option "K07"
  268. y_ = option "K10"
  269. z_ = option "K06"
  270. i-beam = option "K12"
  271. del-tilde = option "K13"
  272. grade-down = option "K14"
  273. grade-up = option "K15"
  274. #vert-rotate = option "K17"
  275. #transpose = option "K16"
  276. #hor-rotate = option "K1a"
  277. #logarithm = option "K1c"
  278. #nor = option "K19"
  279. #nand = option "K1d"
  280. #apl-exclaim = option "K1b"
  281. domino = option "K18"
  282. quote-quad = option "K1e"
  283. delta_ = option "K2a"
  284. format = option "K29"
  285. execute = option "K27"
  286. lamp = option "K2b"
  287. expand = option "K2f"
  288. compress = option "K2c"
  289.  
  290. # añadidos españoles
  291.  
  292. # Redefined option keys for non-keypad symbols
  293. not = option "K17"
  294. backslash = option "K16"
  295. tilde = option "K1b"
  296. lbrack = option "K19"        # corchete izqdo.
  297. exclaim = option "K1d"    # corchete dcho. (rbrack)
  298. lbrace = option "K1a"     # llave izqda.
  299. rbrace = option "K1c"      # llave dcha.
  300.  
  301. turkish_i = option "K00"       # A acentuada
  302. sub1 =option "K0e"                # E acentuada
  303. sub5 =option "K22"                # I acentuada
  304. double_underscore =option "K1f"       # O acentuada
  305. peso =option "K20"                            # U acentuada
  306.  
  307. sub_plus = '¡'
  308. sup_lparen = '!'
  309. sub_lparen = '¿'
  310. acute = 'º'
  311. hook_u = 'ç'
  312. eth = 'Ç'
  313. grave = 'ª'
  314. ae = 'á'
  315. lcpolish_l = 'é'
  316. lcae = 'í'
  317. ala_tilde = 'ó'
  318. macron = 'ú'
  319. thorn = 'à'
  320. lcthorn = 'è'
  321. lchook_u = 'ì'
  322. breve = 'ò'
  323. upadhmaniya = 'ù'
  324. lchook_o = 'ï'
  325. right_hook = 'ü'
  326.  
  327. # This definitions don't work. Replaced by equivalent with keycodes.
  328. #turkish_i = option 'a'
  329. #sub1 = option 'e'
  330. #sub5 = option 'i'
  331. #double_underscore = option 'o'
  332. #peso = option 'u'
  333.  
  334.  
  335. # function mappings
  336. # the following commands have been changed to accomodate spanish/catalan characters:
  337. middle_dot = command 'a'         # A acento grave
  338. sub4 = command 'e'                   # E acento grave
  339. i = command 'i'                           # I acento grave (does not exist in Spanish EBCDIC)
  340. ala_underscore = command 'o'     #  O acento grave
  341. yen = command 'u'                       # U acento grave
  342.  
  343. sub7 = command-shift 'i'             # I dieresis
  344. ala_gamma = command-shift 'u'   # U dieresis
  345.  
  346. enter = normal "0d"
  347.  
  348. pf1 = command '1'
  349. pf1 = "K53"        # keypad 1
  350. pf1 = "K7a"        # F1
  351. pf1 = "K72"        # help
  352.  
  353. pf2 = command '2'
  354. pf2 = "K54"        # keypad 2
  355. pf2 = "K78"        # F2
  356.  
  357. pf3 = command '3'
  358. pf3 = "K55"        # keypad 3
  359. pf3 = "K63"        # F3
  360. pf3 = "K77"        # end
  361.  
  362. pf4 = command '4'
  363. pf4 = "K56"        # keypad 4
  364. pf4 = "K76"        # F4
  365.  
  366. pf5 = command '5'
  367. pf5 = "K57"        # keypad 5
  368. pf5 = "K60"        # F5
  369.  
  370. pf6 = command '6'
  371. pf6 = "K58"        # keypad 6
  372. pf6 = "K61"        # F6
  373.  
  374. pf7 = command '7'
  375. pf7 = "K59"        # keypad 7
  376. pf7 = "K62"        # F7
  377. pf7 = "K74"        # page up
  378.  
  379. pf8 = command '8'
  380. pf8 = "K5b"        # keypad 8
  381. pf8 = "K64"        # F8
  382. pf8 = "K79"        # page down
  383.  
  384. pf9 = command '9'
  385. pf9 = "K5c"        # keypad 9
  386. pf9 = "K65"        # F9
  387.  
  388. pf10 = command '0'
  389. pf10 = "K52"    # keypad 0
  390. pf10 = "K6d"    # F10
  391.  
  392. pf11 = command '-'
  393. pf11 = "K41"    # keypad .
  394. pf11 = "K67"    # F11
  395.  
  396. pf12 = command '='
  397. pf12 = "K4c"    # keypad enter
  398. pf12 = "K6f"    # F12
  399.  
  400. pf13 = command-shift '1'
  401. pf13 = shift "K53"    # keypad 1
  402. pf13 = "K69"        # F13
  403. pf13 = shift "K7a"    # F1
  404.  
  405. pf14 = command-shift '2'
  406. pf14 = shift "K54"    # keypad 2
  407. pf14 = "K6b"        # F14
  408. pf14 = shift "K78"    # F2
  409.  
  410. pf15 = command-shift '3'
  411. pf15 = shift "K55"    # keypad 3
  412. pf15 = "K71"        # F15
  413. pf15 = shift "K63"    # F3
  414.  
  415. pf16 = command-shift '4'
  416. pf16 = shift "K56"    # keypad 4
  417. pf16 = shift "K76"    # F4
  418.  
  419. pf17 = command-shift '5'
  420. pf17 = shift "K57"    # keypad 5
  421. pf17 = shift "K60"    # F5
  422.  
  423. pf18 = command-shift '6'
  424. pf18 = shift "K58"    # keypad 6
  425. pf18 = shift "K61"    # F6
  426.  
  427. pf19 = command-shift '7'
  428. pf19 = shift "K59"    # keypad 7
  429. pf19 = shift "K62"    # F7
  430.  
  431. pf20 = command-shift '8'
  432. pf20 = shift "K5b"    # keypad 8
  433. pf20 = shift "K64"    # F8
  434.  
  435. pf21 = command-shift '9'
  436. pf21 = shift "K5c"    # keypad 9
  437. pf21 = shift "K65"    # F9
  438.  
  439. pf22 = command-shift '0'
  440. pf22 = shift "K52"    # keypad 0
  441. pf22 = shift "K6d"    # F10
  442.  
  443. pf23 = command-shift '-'
  444. pf23 = shift "K41"    # keypad .
  445. pf23 = shift "K67"    # F11
  446.  
  447. pf24 = command-shift '='
  448. pf24 = shift "K4c"    # keypad enter
  449. pf24 = shift "K6f"    # F12
  450.  
  451. pa1 = command ','
  452. pa1 = "K51"            # keypad = (ADB keypad)
  453. pa1 = shift "K48"    # keypad , (numeric/Plus keypad)
  454.  
  455. pa2 = command '.'
  456. pa2 = "K4b"            # keypad / (ADB keypad)
  457. pa2 = shift "K4d"    # keypad / (numeric/Plus keypad)
  458.  
  459. pa3 = command '\'
  460. pa3 = command "03"    # enter
  461.  
  462. clear = command 'c'
  463. clear = "1b"        # keypad clear
  464.  
  465. treq = command '/'
  466. treq = "K43"        # keypad * (ADB keypad)
  467. treq = shift "K42"    # keypad * (numeric/Plus keypad)
  468.  
  469. cursel = command 'l'
  470.  
  471. #up = command 'u'  
  472. up = command 's'       #Spanish        
  473. up = "1e"            # up arrow code
  474.  
  475. down = command 'm'
  476. down = command 'n'
  477. down = "1f"            # down arrow code
  478.  
  479. left = command 'h'
  480. left = "1c"            # left arrow code
  481. left = normal "08"    # backspace/delete code
  482.  
  483.  
  484. right = command 'j'
  485. right = command 'k'
  486. right = "1d"        # right arrow code
  487.  
  488. tab = normal "09"    # tab key
  489. backtab = shift "09"
  490.  
  491. newline = "03"            # enter key
  492. newline = shift "0d"    # return key
  493.  
  494. home = command "0d"        # return key
  495. home = "K73"            # home key
  496.  
  497. #erase-eof = command 'e'
  498. erase-eof = command 'b'                  #Spanish: erase "borrar"
  499. erase-eof = "K4e"        # keypad -
  500.  
  501. #erase-input = command-shift 'e'
  502. erase-input = command-shift 'b'      #Spanish: erase "borrar"             
  503. erase-input = shift "K4e"    # keypad -
  504.  
  505. #insert-mode = command 'i'
  506. insert-mode = command 'v'              #Spanish.
  507. insert-mode = "K45"            # keypad + (ADB keypad)
  508. insert-mode = shift "K46"    # keypad + (numeric/Plus keypad)
  509.  
  510. delete-char = shift "08"    # backspace/delete key
  511. delete-char = "K75"            # X (Del) key
  512.  
  513. reset = command 'r'
  514.  
  515. dup = command 'd'
  516.  
  517. field-mark = command 'f'
  518.  
  519. #apl-mode = command 'a'
  520.  
  521. insert-char = option "08"    # backspace/delete key
  522.  
  523. rub-out = command "08"        # backspace/delete key
  524.  
  525. #up*2 = command-shift 'u'
  526. up*2 = command-shift 's'      #Spanish
  527. up*2 = option "1e"            # up arrow code
  528.  
  529. down*2 = command-shift 'm'
  530. down*2 = command-shift 'n'
  531. down*2 = option "1f"        # down arrow code
  532.  
  533. left*2 = command-shift 'h'
  534. left*2 = option "1c"        # left arrow code
  535.  
  536. right*2 = command-shift 'j'
  537. right*2 = command-shift 'k'
  538. right*2 = option "1d"        # right arrow code
  539.  
  540. cursor-pos = command 'p'
  541.  
  542. prog-reset = command 'g'
  543.  
  544.  
  545.  
  546.